package printNum;

public class Print implements Runnable{
    static int num = 0;

    @Override
    public void run() {
        while (true){
            synchronized (Print.class){
                if(num == 100){
                    break;
                }else {
                    if(num%2 != 0){
                        System.out.println(num);
                    }
                    num++;
                }
            }
        }
    }
}
